<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <hello-world></hello-world>
        <hello-world1></hello-world1>
        <hello-world2></hello-world2>
    </div>
    <script src="../vue.min.js"></script>
    <script>
        var HelloWorld = {
            data: function () {
                return {
                    msg: 'hello'
                }
            },
            template: '<div>{{msg}}</div>'
        }
        var HelloWorld1 = {
            data: function () {
                return {
                    msg: 'hello1'
                }
            },
            template: '<div>{{msg}}</div>'
        }
        var HelloWorld2 = {
            data: function () {
                return {
                    msg: 'hello2'
                }
            },
            template: '<div>{{msg}}</div>'
        }
        var app = new Vue({
            el: '#app',
            data: {

            },
            components: {
                'hello-world': HelloWorld,
                'hello-world1': HelloWorld1,
                'hello-world2': HelloWorld2,
            }
        })
    </script>
</body>

</html>